<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>Facelet Title</title>
        <link type="text/css" rel="stylesheet" href="theme3.css" />
    </h:head>
    <h:body>
        <center>
            <h:form id="formulario">
                <p:messages autoUpdate="true"/>
                <h:panelGrid>
                    <p:panel header="LOGIN">
                        <h:panelGrid columns="2" cellpadding="7">  
                            <h:outputText value="Usuário:" />
                            <p:inputText value="#{loginController.login.usuario}" required="true"  />

                            <h:outputText value="Senha:" />
                            <p:password value="#{loginController.login.senha}" required="true"/>
                            <p:commandButton value="Logar" action="#{loginController.logar}" >
                            </p:commandButton>
                            
                            <p:commandButton value="Cancelar" type="reset" /> 
                            
                            <h:link outcome="esqueciSenha" value="Esqueci a senha" />
                            <h:link outcome="novoCadastro" value="Novo Cadastro" />
                        </h:panelGrid>
                    </p:panel>
                </h:panelGrid>
                
            </h:form>
        </center>
    </h:body>
</html>
